//
//  ZLDomeViewController.swift
//  微博
//
//  Created by 朱万龙 on 2016/12/11.
//  Copyright © 2016年 zwl. All rights reserved.
//

import UIKit

class ZLDomeViewController: ZLBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.zl_random()

        navItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }
    func rightButtonCilck(){
        
        let vc = ZLDomeViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    

}
extension ZLDomeViewController{
    override func setUpTableView(){
            super.setUpTableView()
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontSize: 16, target: self, action: #selector(rightButtonCilck))
    }
}
